Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔊 #383

Merged
merged 1 commit into from
Jul 9, 2024
Merged

🔊 #383

merged 1 commit into from
Jul 9, 2024

Conversation

mraniki
Copy link
Owner

@mraniki mraniki commented Jul 9, 2024

Summary by Sourcery

This pull request enhances the _create_client method by adding a debug log statement to output the selected library, aiding in debugging and monitoring.

  • Enhancements:
    • Added a debug log statement to output the selected library in the _create_client method.

Copy link

sourcery-ai bot commented Jul 9, 2024

Reviewer's Guide by Sourcery

This pull request focuses on cleaning up the code by removing a commented-out line and adding a debug log statement to improve traceability of the 'library' variable in the '_create_client' method.

File-Level Changes

Files Changes
findmyorder/main.py Cleaned up commented-out code and added a debug log statement for better traceability.

Tips
  • Trigger a new Sourcery review by commenting @sourcery-ai review on the pull request.
  • Continue your discussion with Sourcery by replying directly to review comments.
  • You can change your review settings at any time by accessing your dashboard:
    • Enable or disable the Sourcery-generated pull request summary or reviewer's guide;
    • Change the review language;
  • You can always contact us if you have any questions or feedback.

@mraniki mraniki enabled auto-merge July 9, 2024 07:29
Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @mraniki - I've reviewed your changes and they look great!

Here's what I looked at during the review
  • 🟡 General issues: 2 issues found
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟢 Documentation: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.

library = (
kwargs.get("library")
or kwargs.get("platform")
or kwargs.get("protocol")
or kwargs.get("parser_library")
or "standard"
)
logger.debug("Library: {}", library)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: Use f-string for logging

Consider using an f-string for the logging statement to maintain consistency and readability. For example: logger.debug(f"Library: {library}").

Suggested change
logger.debug("Library: {}", library)
logger.debug(f"Library: {library}")

@@ -111,14 +111,14 @@ def _create_client(self, **kwargs):
library is not supported.

"""
# library = kwargs.get("parser_library", "standard")
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: Remove commented-out code

Consider removing the commented-out line entirely if it is no longer needed. Keeping commented-out code can clutter the codebase and reduce readability.

Suggested change
# library = kwargs.get("parser_library", "standard")
library is not supported.
"""
library = (
kwargs.get("library")

Copy link

codecov bot commented Jul 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (51af595) to head (b763294).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #383   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            6         6           
  Lines          137       138    +1     
=========================================
+ Hits           137       138    +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mraniki mraniki merged commit a0f83f8 into main Jul 9, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant